
using System;
using System.Collections;

namespace IGlobalist.Cms.Model
{
	#region CmsClassType

	
	public class CmsClassType :ICmsClassType
		{
		#region Member Variables
		
		private short _id;
		private string _name;
		private string _description;

		#endregion

		#region Constructors

		public CmsClassType() { }

		public CmsClassType( string name, string description )
		{
			this._name = name;
			this._description = description;
		}

		#endregion

		#region Public Properties

		public short ID
		{
			get {return _id;}
			set {_id = value;}
		}

		public string Name
		{
			get { return _name; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Name", value, value.ToString());
				_name = value;
			}
		}

		public string Description
		{
			get { return _description; }
			set
			{
				if ( value != null && value.Length > 250)
					throw new ArgumentOutOfRangeException("Invalid value for Description", value, value.ToString());
				_description = value;
			}
		}

  
		#endregion
		
     
	}

	#endregion
}
